const { resolve } = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    mode: "development",
    devServer: {
        port: 3600,
        hot: true,
        open: true,
        watchFiles: [resolve(__dirname, './src/index.html')]
    },
    module: {
        rules: [
            {
                test: /\.css$/,
                use: ['style-loader', 'css-loader']
            }
        ]
    },
    plugins: [
        new HtmlWebpackPlugin({
            template: resolve(__dirname, './src/index.html'),
            hash: true,
            minify: false
        })
    ]
}